package br.com.iswe.recipemaster.entities.security;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import br.com.iswe.core.entidades.annotation.GeradorConfig;
import br.com.iswe.core.entidades.annotation.SecurityStrategyType;
import br.com.iswe.recipemaster.entities.BaseEntity;

import com.google.appengine.api.datastore.Key;

/**
 * 
 * @author Rafael Noronha
 * 
 * Entidade que define um Tipo de Perfil no sistema
 */
@Entity
@GeradorConfig(securityStrategy = SecurityStrategyType.ACEGI_ISWE_INTEGRATION)
public class RoleGroupType extends BaseEntity {

	private static final long serialVersionUID = 4532442341876231L;
	private Key   roleGroupTypeId;
	private String description; 
	
	@Id
	public Key getRoleGroupTypeId() {
		return roleGroupTypeId;
	}
	public void setRoleGroupTypeId(Key roleGroupTypeId) {
		this.roleGroupTypeId = roleGroupTypeId;
	
	}
	
	@Column(nullable=false, length = 150)
	@GeradorConfig(campoDescricao=true)
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
}